#include "RenderableObject.h"
#include "Node.h"
#include "Paras.h"
//
namespace Euclid
{
	RenderableObject::RenderableObject()
		:	_sceneManager(NULL), _type("")
	{
		_renderSystem = Paras::getSingletonPtr()->_renderSystem;
	}

	RenderableObject::RenderableObject( const std::string& name )
	{
		_name = name;
	}

	RenderableObject::~RenderableObject()
	{

	}

	void RenderableObject::preRender()
	{

	}

	void RenderableObject::postRender()
	{

	}

	void RenderableObject::destroy()
	{

	}

	std::string RenderableObject::getName() const
	{
		return _name;
	}

	void RenderableObject::attachNode( Node* node )
	{
		_currentNode = node;
	}

	void RenderableObject::setName( const std::string& name )
	{
		_name = name;
	}

	void RenderableObject::setType( std::string& type )
	{
		_type = type;
	}

	const std::string& RenderableObject::getType() const
	{
		return _type;
	}

	bool RenderableObject::update()
	{
		return true;
	}
}
